﻿<Window x:Class="road2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:services="clr-namespace:road2.Services"
        Title="MainWindow" Height="480" Width="640">
    <Window.Resources>
        <services:IntTimeSpanConverter x:Key="TimerConv"/>
    </Window.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        
        <Menu IsMainMenu="True" Grid.Row="0">
            <MenuItem Header="File">
                <MenuItem Header="New" />
                <MenuItem Header="Open" />
                <MenuItem Header="Save" />
                <MenuItem Header="Save as" />
                <MenuItem Header="Exit" />
            </MenuItem>
            <MenuItem Header="Edit">
                
            </MenuItem>
            <MenuItem Header="View">
                
            </MenuItem>
            <MenuItem Header="Tools">
                
            </MenuItem>
        </Menu>
        
        <ToolBarTray Grid.Row="1">
            <ToolBar>
                <Button Content="Car gen"/>
                <Button Content="Car term"/>
                <Button Content="Road"/>
                <Button Content="Crossroad"/>
            </ToolBar>
        </ToolBarTray>
        
        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="200" />
            </Grid.ColumnDefinitions>
            
            <Canvas Margin="10,10,15,10" Grid.Column="0" Background="Honeydew"/>

            <GridSplitter Grid.Column="0" Width="5" />

            <Grid Grid.Column="1" Margin="10" Name="PropertiesGrid" />
            
        </Grid>
        
        <Grid Grid.Row="3" Margin="10">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Content="test" Width="100" Height="30" Name="testButton"/>
                <Button Content="test 2" Width="100" Height="30" Name="test2Button"/>
            </StackPanel>
        </Grid>
        
    </Grid>
</Window>
